package com.grf.es.highlevelrest;

import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequest;
import org.elasticsearch.action.index.IndexRequest;

/**
 * 索引操作
 * @author 郭荣锋
 *
 */
public class Index {

	/**
	 * 创建索引 
	 */
	public void createIndex() {
		CreateIndexRequest request = new CreateIndexRequest();
		request.alias(new Alias("")); //取别名
		//request.mapping("", source);
	}
	
	/**
	 *  添加文档 
	 */
	public void addDoc() {
		
	}
	
}
